package com.ibeeking.found.file.rest.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ibeeking.found.file.rest.service.INoticeService;
import com.ibeeking.found.file.service.common.dos.NoticeDO;
import com.ibeeking.found.file.service.common.query.NoticePageQuery;
import com.ibeeking.found.file.service.mapper.NoticeMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


@Service
public class NoticeServiceImpl extends ServiceImpl<NoticeMapper, NoticeDO> implements INoticeService {

    @Resource
    private NoticeMapper noticeMapper;


    @Override
    public Page<NoticeDO> selectUserPage(NoticePageQuery pageQuery) {
        Page<NoticeDO> page = new Page<>(pageQuery.getPageNum(), pageQuery.getPageSize());
        return noticeMapper.selectPageVo(pageQuery);
    }
}
